package work.lombok;

import work.entity.BuilderEntity;

/**
 * 设计模式之建造者模式
 * lombok的@Builder注解的使用
 */
public class BuilderTest {
    public static void main(String[] args) {
        BuilderEntity builderEntity = BuilderEntity
                .builder()
                .id("11")
                .name("AAA")
                .build();
        System.out.println(builderEntity.toString());

    }
}
